﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Model_list.aspx.cs" Inherits="TRPOP.CMS.Web.Admin.Model_list" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>内容模型-<%=base.m_strBaseAdminPageName%></title>
    <script src="../../js/utils.js" type="text/javascript"></script>
    <script src="../../js/jquery.js" type="text/javascript"></script>
    <script src="../js/jquery.form.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
    <table id="page_navigator">
        <tr>
            <td class="align_l">
                当前位置：系统管理 -> 内容模型管理
            </td>
        </tr>
    </table>
    <table class="table_list">
        <tr class="tr_title">
            <th width="10%">
                TableID
            </th>
            <th width="10%">
                TableName
            </th>
            <th width="30%">
                内容模型
            </th>
            <th>
                执行操作
            </th>
        </tr>
        <cms:Repeater ID="rptList" runat="server">
            <ItemTemplate>
                <tr>
                    <td>
                        <%#Eval("ModelId")%>
                    </td>
                    <td>
                        <%#Eval("TableName")%>
                    </td>
                    <td >
                        <%# Eval("Name")%>
                    </td>
                    <td>
                        <a href="Model_save.aspx?id=<%#Eval("ModelId")%>">编辑</a>
                        <cms:LinkButton ID="LinkButton1" runat="server" Text="删除" OnClick="lbtnDelete_Click"
                            CommandArgument='<%#Eval("ModelId") %>' OnClientClick="return confirm('此操作将删除该模型下所有信息,你确定要删除吗？');"></cms:LinkButton>
                    </td>
                </tr>
            </ItemTemplate>
        </cms:Repeater>
    </table>
    <br />
    <table class="table_list">
        <tr>
            <th colspan="2" class="align_l">
                新建内容模型
            </th>
        </tr>
        <tr class="tr_itemsec">
            <td width="10%">
                内容模型名称:
            </td>
            <td>
                <cms:TextBox ID="txtName" runat="server" required="1" prompt="模型名" valuelength="20"
                    ControlValueType="String" Width="120px"></cms:TextBox>
                &nbsp;&nbsp; 数据表名:
                <cms:TextBox ID="txtTableName" runat="server" required="1" prompt="表名" valuelength="20"
                    ControlValueType="String"></cms:TextBox>&nbsp;&nbsp;
                <cms:Button CssClass="button_style" ID="btnSubmit" Text="确定" OnClientClick="return CheckForm(this.form);"
                    runat="server" OnClick="btnSubmit_Click" />
            </td>
        </tr>
    </table>
    <br />
    </form>
</body>
</html>
